package 算法.base;

import com.alibaba.fastjson.JSONObject;

/**
 * @author lchenglong
 * @date 2020/11/6
 */
public class JavaString {

    public static void main(String[] args) {
//        Map map = new HashMap();
//        for(int i=0;i<12;i++){
//            map.put(i,i);
//        }
//        System.out.println(map.size());
//        for (int i = 12;i<16;i++){
//            map.put(i,i);
//        }
//        System.out.println(map.size());
        String str = "{\"procmesg\" :\"处理成功\",\"data\":\"{\\\"acess_token\\\" : \\\"1b5098a5898248d473ec4903ca331961d2df6c96146714cde4Bacbobf8212ac\\\",\\\"refresh token_expires_in\\\":\\\"2022-05-18 17:18:29\\\", \\\"refresh_token\\\" : \\\"U1d39af4$8c39514b2caBca1f0903035808ca23aeb 2a425ecefeAf140f05ab05\\\" ,\\\"accss token expires_in\\\":\\\"2022-05-17 17:28:29\\\"} \",\"proccode\":\"200\" , \" proctime\":\"2022-05-17 17:18:29\"}";
        JSONObject jsonObject = JSONObject.parseObject(str);
        JSONObject data = jsonObject.getJSONObject("data");
        String acess_token = data.getString("acess_token");
        System.out.println(acess_token);
    }
}
